<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@include file="/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="${ctx }/js/plugs/jquery-ui-1.10.3.custom/css/mycss/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css" />
<title>小组信息</title>
<link href="${ctx}/js/plugs/validate/jquery.validate.css" type="text/css" rel="stylesheet" />
<script src="${ctx}/js/plugs/validate/jquery.validate.js" type="text/javascript"></script>
<script src="${ctx}/js/plugs/validate/messages_cn.js" type="text/javascript"></script>
<script src="${ctx }/js/plugs/validate/jquery.metadata.js" type="text/javascript"></script>
<script type="text/javascript">
	
$(document).ready(function(){
	currentMenu("groupmanager");
	$("#inputForm").validate({
		rules:{
			//orgId
			userGroupName:{
				required:true,
				minlength:0,
				maxlength:100,
				remote:{
					url: "${ctx}/sy/group/group-admin/checkGroupName.do",     //后台处理程序
					type: "post",  //数据发送方式
					data: {   //要传递的数据
						userGroupName: function() { return $("input[name='userGroupName']").val();},
						userGroupNameOra: function() { return $("input[name='userGroupNameOra']").val();}
						}
					}
				}
		},
		errorPlacement: function(error, element) {
		    //error.appendTo(element.parent().parent());
			 element.parent().append(error);
		}
	});
});

	
</script>
<style type="text/css">
.ac-input-td input,.ac-input-td select{
	padding: 4px! important;
	font-size: 14px;
}
.red-color{
	color: red;
}
</style>
</head>
<body>
	
	<div style="margin-top: 15px;">
		
	</div>
	<div style="clear: both;"></div>
	<div id="dwBody" >
		<div id="dwBodyContent" class="bodyCenter" style="">
		
		<div id="dwBodyUser">
			<div class="surveyCollectMiddle">
				
				<form id="inputForm" action="${ctx }/sy/group/group-admin/save.do" method="post" >
				<input type="hidden" name="id" value="${entity.id }" >
				<div class="surveyCollectMiddleContent">
					<div style="padding: 25px 45px;overflow: auto;padding-top: 35px;">
							<div style="border-bottom: 1px solid #DFDFDF;padding: 5px;color: #666565;">小组信息</div>
							<div style="padding: 5px;color:#666565; ">
								<table width="100%">
									<tr>
										<td valign="top" align="left" >
											<table class="ac-form-table">

												<tr>
													<td width="80" align="right"><span class="red-color">*&nbsp;</span>组名</td>
													<c:choose>
														<c:when test="${!empty(id) }">
															<td class="ac-input-td"><input type="text"  name="userGroupName" value="${entity.userGroupName }" > </td>
															<input type="hidden"  name="userGroupNameOra" value="${entity.userGroupName }" >
														</c:when>
														<c:otherwise>
															<td class="ac-input-td"><input type="text"  name="userGroupName" value=""  > </td>
														</c:otherwise>
													</c:choose>
												</tr>
											</table>
										</td>
									</tr>

									<tr>
										<td height="50"><input type="submit" value="${empty(entity.id) ? '新建':'保存修改'}" class="sbtn25 sbtn25_1" style="margin-left: 125px;"> </td>
										<td class="ac-input-td"> </td>
									</tr>
								</table>
							</div>
							
					</div>
				</div>
				</form>
				
			</div>
			
		</div>
		</div>
	</div>
<script type="text/javascript">
 $("input[name='status'][value='${entity.status}']").prop("checked",true);
</script>
</body>
</html>